import { request } from './request'
var api = require('@/js/api.js')

export function getCategoryList() {
    return request(api.CatalogList)
}

export function getCatalogCurrent(id) {
    return request(api.CatalogCurrent + '?id=' + id)
}

export function getGoodsList(id) {
    return request(api.GoodsList + '?categoryId=' + id)
}